package {{.tf.Package}};
{{- $tfModel := ""}}
{{- $tfDto := ""}}
{{- range .tplFiles}}
{{- if eq .Type "Model"}}{{$tfModel = .}}{{- end}}
{{- if eq .Type "Dto"}}{{$tfDto = .}}{{- end}}
{{- end}}

{{- $model := toCamel .table.Name}}{{/*Mode名字*/}}
{{- $service:= printf "%s%s%s" "I" $model "Service" }}{{- /* 接口 */}}
{{- .ctx.Set "fileName" $service}}{{- /* 设置输出文件名字 */}}

import {{.tf.Package}}.{{$model}};
import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.customized.dto.ResultDTO;
import com.travel.customized.entity.PageList;
import {{$tfDto.Package}}.*;
import java.util.List;

/**
* {{.table.Comment}} 服务类
*
* @author {{.tpl.Author}}
* @since {{.datetime}}
*/
public interface $service extends IService<{{$model}}> {
    ResultDTO<List<{{$model}}ListRspDTO>> list({{$model}}ListReqDTO dto);
    ResultDTO<PageList<{{$model}}ListRspDTO>> listPage(Integer page, Integer pageSize, {{$model}}ListReqDTO dto);
    ResultDTO<{{$model}}AddRspDTO> add({{$model}}AddReqDTO dto);
    ResultDTO<{{$model}}UpdRspDTO> update({{$model}}UpdReqDTO dto);
    ResultDTO<{{$model}}DelRspDTO> delete({{$model}}DelReqDTO dto);
}
